/**
 * 
 */
package com.effectivsocial.domain;

import lombok.Getter;
import lombok.Setter;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author Dhrubo
 * 
 */
@Document(collection="Twitter")
public class TwitterApp extends PersistentObject<User, String> {
	private static final long serialVersionUID = 1L;
	
	@Getter @Setter
	private String name;
	@Getter @Setter
	private String consumerKey;
	@Getter @Setter
	private String consumerSecret;
	@Getter @Setter
	private String accessToken;
	@Getter @Setter
	private String accessTokenSecret;

	// private Company company;
	@Getter @Setter
	@Indexed(unique=true)
	private String publicKey;
	@Getter @Setter
	@DBRef
	private Application application;

}
